<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input type="hidden" name="order_id" id="order_id" value="{$order.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('merchant_car_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <image src="{$merchant_car.car_image}" width="30%" height="30%" style="border: 1px solid #eee" />
            <div style="display: inline-block;position: absolute;top: 20%;left: 34%;">
                <span style="display: block">{$merchant_car.car_name??''}</span>
                <span style="display: block;margin-top: 8%">车牌号：{$merchant_car.car_number??''}</span>
                <span style="display: block;margin-top: 8%" id="car_price">{$order.price??''}</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8" id="car_type">
            {:Form::radios('row[type]', $typeList, 1, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Merchant_car_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-merchant_car_id" data-rule="" data-source="merchant_car/selectpage" data-field="car_name" data-params='{"custom[merchant_id]":"{$order.merchant_id}","custom[id]":["neq", "{$order.merchant_car_id}"]}' data-search-field="car_name" data-format-item="{car_name} - {car_number}"  data-multiple="false" data-pagination="true" data-order-by="id desc" data-page-size="10"  class="form-control selectpage" name="row[merchant_car_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('新车信息')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[order_id]" value="{$order.id}">
            <image width="30%" height="30%" style="border: 1px solid #eee" id="new_car_image" />
            <div style="display: inline-block;position: absolute;top: 20%;left: 34%;">
                <span style="display: block" id="new_car_name"></span>
                <span style="display: block;margin-top: 8%" id="new_car_number"></span>
                <span style="display: block;margin-top: 8%" id="new_car_price"></span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Diff_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-diff_money" class="form-control" step="0.01" name="row[diff_money]" type="number" value="" readonly>
        </div>
    </div>
    <div class="form-group" id="other_number">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_number" class="form-control" name="row[other_number]" type="text" value="" placeholder="外部车辆和内部车辆同时存在时，优先内部车辆">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
